import Vue from 'vue'
import App from './App'
import Common from './config/common.js'
import Db from './config/db.js'
import PH from './config/path.js'
import store from './store'

Vue.config.productionTip = false
Vue.use(Common);
Vue.use(Db);
Vue.use(PH);
Vue.prototype.$api = {}

// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js')
Vue.mixin(vuexStore)

// 引入uView对小程序分享的mixin封装
let mpShare = require('@/config/mpShare.js');
Vue.mixin(mpShare)

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
//api接口
import Api from './config/api.js'
Vue.use(Api,app);

app.$mount()

 